package com.xwdeshj.service;

import com.alibaba.fastjson.JSONObject;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by BKWJA on 2018/12/22.
 * 商家信息/主管审核表接口层
 */
public interface XwBusinessInfoService {

    JSONObject upgradeBusines(String tab,String user_encryptId, String business_Legal, String business_Credit,
                              String business_license, String business_tel, String business_create, String business_type,
                              String farm_tour_type, String Business_area, String dining_reception, String room, String scale,
                              String consume, String city, String district, String address,String intr_info,
                              String bus_route, String Self_route, String Remarks, String CompanyName, Integer tradestatus,
                              String applicant_checkencryptId,String Type_encryptId);

    JSONObject upgradeSecBusines(String tab, String user_encryptId, String business_Legal, String business_Credit,
                                 String business_license, String business_tel, String business_create, String business_type,
                                 String farm_tour_type, double scenic_Ticket, String tour_kftime, String scenic_suit,
                                 String sceni_suit_encryptId, String scenic_season, String city, String district,
                                 String address, String intr_info,String bus_route, String Self_route, String Remarks,
                                 String CompanyName, String scenic_grade, String Type_encryptId, HttpServletRequest request);

    JSONObject getbusinessinfolist(Integer pageindex,Integer pagesize,String starttime,String endtime,String sortfild,
                                   String sortway,String business_type,String reviewStatus,String searchval,
                                   String searchkey,HttpServletRequest request);

    JSONObject delbusinessinfo(String business_encryptId,String farm_encryptId,String sec_encryptId,HttpServletRequest request);

    JSONObject checkbusinessinfo(Integer pageindex,Integer pagesize,String starttime,String endtime,
                                 String sortfild,String sortway,String appliacnt,String business_type,
                                 String reviewStatus,String reviewer,String searchval,String searchkey,
                                 HttpServletRequest request);

    JSONObject checkOperate(String business_encryptId,String type,String remark,HttpServletRequest request);

    JSONObject checkRevoke(String business_encryptId,HttpServletRequest request);

    /**
     * 发送商家信息审核电子邮件
     * @param business_encryptId 商家加密id
     * @param statusName 审核状态中文名
     * @param request
     * @return
     */
    JSONObject MailBusinfoCheck(String business_encryptId,String statusName,HttpServletRequest request);

    JSONObject delbussinessRefuse(HttpServletRequest request);

}
